package com.sumainfor.pc.epc.controller.provider;

import com.sumainfor.common.util.FieldCheckUtil;
import com.sumainfor.common.util.JsonResult;
import com.sumainfor.pc.epc.service.OrderService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * 功能描述:
 * 维修修改账单
 * @Auther: zhlu
 * @Date: 2019/7/15 15:32
 * @Description:
 */
@RestController
@RequestMapping("/key/repOrd")
public class RepairOrdController {

    @Autowired
    OrderService OrderService;

    /**
     * 功能描述:
     * 根据维修账单编号获取维修工单资料
     * @Author zhlu
     * @Description //TODO
     * @Date 2019/7/15 15:36
     */
    @GetMapping("/getBillByOrdBilIdMap")
    public Map<String,Object> getBillByOrdBilIdMap(String OrdBiId﻿){
        if(!StringUtils.isNotEmpty(OrdBiId﻿)){
            return  JsonResult.error("OrdBiId不能为空！");
        }
        return OrderService.getBillByOrdBilIdMap(OrdBiId﻿);
    }


}
